<%@ Control Language="vb" AutoEventWireup="false"  Explicit="true" codefile="Edit.ascx.vb" Inherits="NVPortal.Modules.NVNews.Edit" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>

<link rel="stylesheet" href="/jquery/themes/blitzer/jquery.ui.all.css">
<script type="text/javascript" src="/jquery/jquery-1.6.2.js"></script>
<script type="text/javascript" src="/jquery/jquery.cookie.js"></script>
<script type="text/javascript" src="/jquery/jquery.ui.core.js"></script>
<script type="text/javascript" src="/jquery/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/jquery/jquery.ui.tabs.js"></script>
<style type="text/css">
.upnewstd1 {font-family:Arial; font-size: 12px; color:#000;font-weight:normal; width: 170px; text-align: right; padding: 5px 10px 5px 0px; border-bottom: solid 1px #ccc;}
.SubHead {font-family:Arial; font-size: 12px; color:#434343;font-weight:normal;}
.NewsAdminta {font-weight: bold; height: 30px; background: #eee; color:black; font-family:Arial; font-size: 13px; padding-left: 10px;}
.upnewstd2 {padding: 5px 0px;  border-bottom: solid 1px #ccc;}
</style>
<div id="tabs"> 
	<ul> 
		<li><a href="#tabs-1">Tiêu đề và Tóm tắt tin</a></li> 
		<li><a href="#tabs-2">Nội dung tin</a></li> 
		<li><a href="#tabs-3">Thông tin về tin này</a></li> 
        <li><a href="#tabs-4">Chọn tin liên quan</a></li> 
	</ul> 

<div id="tabs-1">
    <table id="Table1" width="100%" cellpadding="0" cellspacing="0" style="font-family: Arial; font-size: 12px; color:#434343;" align="center">
	    <tr>
		    <td colspan="2" style="display:none;">
			    <asp:linkbutton id="lbtUpdateTop" runat="server" Font-Bold="True"><img src="images/Acapnhat.jpg" alt="" /></asp:linkbutton>&nbsp;&nbsp;
			    <asp:linkbutton id="lbtDeleteTop" runat="server" Font-Bold="True">Xoá tin</asp:linkbutton>&nbsp;&nbsp;
			    <asp:linkbutton id="lbtCancelTop" runat="server" Font-Bold="True">Huỷ bỏ</asp:linkbutton>
		    </td>
	    </tr>
	    <tr>
		    <td colspan="2"><asp:Label id="lbResult" runat="server" CssClass="NormalRed"></asp:Label></td>
	    </tr>
	    <tr>
		    <td class="upnewstd1">Tiêu đề:</td>
		    <td class="upnewstd2"><asp:textbox id="txtTitle" runat="server" Width="400px" Font-Bold="true" Font-Size="14px"></asp:textbox></td>
	    </tr>
	    <tr>
		    <td class="upnewstd1">
			    <asp:Label CssClass="SubHead" id="Label5" runat="server">Thư mục</asp:Label></td>
		    <td class="upnewstd2">
			    <asp:DropDownList id="ddlCategory" runat="server" Width="280px" Height="20px" Font-Bold="true" Font-Size="13px"></asp:DropDownList></td>
	    </tr>
	    <tr>
		    <td colspan="2">
			    <table cellpadding="0" cellspacing="0" style="border: 0px; text-align: center; width: 100%; background: #eee; height: 25px;">
				    <tr>
					    <td style="width: 33%; text-align: center">
						    <asp:Label CssClass="SubHead" id="Label7" runat="server">Hot Category</asp:Label>&nbsp;&nbsp;&nbsp;
						    <asp:CheckBox id="chkHotCat" runat="server"></asp:CheckBox></td>
					    <td style="width: 33%; text-align: center">
						    <asp:Label CssClass="SubHead" id="Label8" runat="server">Hot Site</asp:Label>
						    <asp:CheckBox id="chkHotSite" runat="server"></asp:CheckBox></td>
					    <td style="width: 33%; text-align: center">
						    <asp:Label CssClass="SubHead" id="Label10" runat="server">Đặt chú ý</asp:Label>
						    <asp:CheckBox id="chkNotes" runat="server"></asp:CheckBox></td>
				    </tr>
			    </table>
		    </td>
	    </tr>
	    <tr>
            <td style="text-align: center"><h3><a target=_blank style="color:Red" href="http://up.tinmanutd.com">Để UP ảnh cho bài viết của bạn</a></h3></td>
        </tr>
	    <tr>
	        <td class="upnewstd1">
	            Hoặc chèn Link:
	        </td>
	        <td class="upnewstd2"><asp:textbox id="txtLinkImage" runat="server" Width="360px"></asp:textbox></td>
	    </tr>
	    <tr>
	        <td class="upnewstd1">
	            <asp:label CssClass="SubHead" id="Label14" runat="server">Hoặc chèn Link</asp:label>
	        </td>
	        <td class="upnewstd2"><asp:textbox id="txtLinkImageHOT" runat="server" Width="360px"></asp:textbox></td>
	    </tr>
	    <tr>
		    <td class="upnewstd1"><asp:label CssClass="SubHead" id="Label3" runat="server">Tóm tắt <br /><font style="color: red;">Phải Nhập *</font></asp:label></td>
		    <td class="upnewstd2"><asp:textbox id="txtSummary" runat="server" Width="560px" Height="88px" TextMode="MultiLine"></asp:textbox></td>
	    </tr>
    </table>
</div>
<div id="tabs-2"> 
    <table id="Table2" width="100%" cellpadding="0" cellspacing="0" style="font-family: Tahoma; font-size: 12px; color:#434343;" align="center">
	    <tr><td style="display: none"><h3>Tóm tắt Tin Ngang Với Tiêu Đề ở Chi tiết</h3></td></tr>
        <tr>
            <td style="text-align: center"><h3><a target=_blank style="color:Red" href="http://up.tinmanutd.com">Để UP ảnh cho bài viết của bạn</a></h3></td>
        </tr>
        <tr>
            <td>
                <dnn:TextEditor id="TextEditor2" Visible="false" EnableViewState="false" EnableTheming="true" ChooseRender="false" Width="98%" Height="200" runat="server" />
            </td>
        </tr>
        <tr><td><h3>Nội dung tin</h3></td>
	    </tr>
	    <tr>
		    <td><dnn:TextEditor DefaultMode="basic"  ChooseMode="false" id="TextEditor1" Width="98%" Height="500" runat="server" /></td>
	    </tr>
    </table>
</div>
<div id="tabs-3"> 
    <table id="Table3" width="100%" cellpadding="0" cellspacing="0" style="font-family: Tahoma; font-size: 12px; color:#434343;" align="center">
	    <tr>
		    <td class="upnewstd1"><asp:label CssClass="SubHead" id="Label11" runat="server">Link nguồn: </asp:label></td>
		    <td class="upnewstd2"><asp:textbox id="txtLinkNguon" runat="server" Width="400px" Font-Bold="true" Font-Size="14px"></asp:textbox></td>
	    </tr>
        <tr>
            <td class="upnewstd1"><asp:label CssClass="SubHead" id="Label1" runat="server">Trang nguồn: </asp:label></td>
		    <td class="upnewstd2"><asp:DropDownList ID="ddlNguonTin" runat="server"></asp:DropDownList></td>
        </tr>
    </table>
</div>
<div id="tabs-4">
d
</div>
<table id="Table4" width="100%" cellpadding="0" cellspacing="0" style="font-family: Tahoma; font-size: 12px; color:#434343;" align="center">
	<tr>
		<td colspan="2" style="padding: 10px; background: #efefef">
		    <table cellpadding="0" cellspacing="0">
		        <tr>
		            <td>Bình luận: <asp:CheckBox id="chkBL" Checked="true" runat="server"></asp:CheckBox></td>
		            <td><asp:linkbutton id="lbtUpdateBottom" runat="server" Font-Bold="True"><img src="/images/Acapnhat.jpg" style="border: 0px;" alt="Cập nhật" /></asp:linkbutton></td>
		            <td width="40"></td>
		            <td><asp:linkbutton id="lbtDeleteBottom" runat="server" Font-Bold="True"><img src="/images/Axoa.jpg" style="border: 0px;" alt="Xóa tin" /></asp:linkbutton></td>
		            <td width="40"></td>
		            <td><asp:linkbutton id="lbtCancelBottom" runat="server" Font-Bold="True"><img src="/images/Aback.jpg" style="border: 0px;" alt="Xóa tin" /></asp:linkbutton></td>
		        </tr>
		    </table>
		</td>
	</tr>
	<tr>
	    <td colspan="2" style="vertical-align: top; padding: 5px 0px;" id="tdTinlienquan" runat="server">
	        <fieldset style="border: 1px solid #dedede;">
	        <legend>
	            <a href="javascript: void(0)" onclick="Tinlienquan()"style="font-family: Arial; font-size: 13px; font-weight: bold; color:#434343">Chọn tin liên quan</a></legend>
	            <asp:UpdatePanel ID="udpBindNewsRelated" runat="server">
	                <ContentTemplate>
	                <asp:DataList ID="dlNewsRelated" runat="server">
	                    <ItemTemplate>
	                        <asp:Label ID="lblTitleNewsRelated" runat="server" Text='<%# Databinder.Eval(Container.DataItem,"newid_Related") %>'></asp:Label>
	                        <asp:linkbutton id="lbtDelNewsRelated" runat="server" OnClick="DelNewsRelated" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Id") %>'><img src="/images/Axoa.jpg" style="border: 0px;" alt="Xóa tin" /></asp:linkbutton>
	                    </ItemTemplate>
	                </asp:DataList>
	                </ContentTemplate>
	            </asp:UpdatePanel>
	        </fieldset>
	    </td>
	</tr>
	
</table>
</div>
<script type="text/javascript">
<!--
function Tinlienquan() {
window.open('/DesktopModules/NV_News/Manager/newskhac/Tinlienquan.aspx', 'windowname1', 'width=900, height=700')
}
//-->
</script>
<script type="text/javascript">
    $(function () {
        $("#tabs").tabs({
            cookie: {
                // store cookie for a day, without, it would be a session cookie
                expires: 1
            }
        });
    });
	</script> 